package com.yjhb.android.sbz.entity;

import com.google.gson.Gson;
import com.jojo.android.zxlib.base.BaseEntity;

import java.util.Date;

/**
 * 创建者 zx
 * 创建时间 2020/12/4 10:56
 * 订单信息
 */
public class Order extends BaseEntity {


    /**
     * id : 49
     * orderId : 33c79ac3d9dd4fb39355da78908a524e
     * userId : 5
     * createTime : 2020-12-03 09:59:10
     * money : 50
     * source : 1
     * target : 1
     * type : 1
     * remark : 支付宝充值到余额
     * status : 1
     * tradeInfo : null
     */

    private int id;
    private String orderId;
    private int userId;
    private Date createTime;
    private String money;
    private int source;
    private int target;
    private int type;
    private String remark;
    private int status;
    private String tradeInfo;

    public static Order objectFromData(String str) {

        return new Gson().fromJson(str, Order.class);
    }


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getMoney() {
        return money;
    }

    public void setMoney(String money) {
        this.money = money;
    }

    public int getSource() {
        return source;
    }

    public void setSource(int source) {
        this.source = source;
    }

    public int getTarget() {
        return target;
    }

    public void setTarget(int target) {
        this.target = target;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getTradeInfo() {
        return tradeInfo;
    }

    public void setTradeInfo(String tradeInfo) {
        this.tradeInfo = tradeInfo;
    }
}